package com.imau.common.entiry;

public enum ResultCode {

    //定义枚举变量
    //成功代码
    SUCCESS(true,10000,"操作成功！"),
    //---系统错误返回码-----
    SERVER_ERROR(false,9999,"系统异常"),
    FAIL(false,10001,"操作失败"),
    UNAUTHENTICATED(false,10002,"您还未登录"),
    UNAUTHORISE(false,10003,"权限不足"),

    NODATA(false,10004,"未查到数据"),

    UNMOBILEORPASSWORD(false,20001,"用户账号或密码错误"),

    UNLOGINEXPIRE(false,20002,"登录过期!");
    ;
    private boolean success;
    /**返回码*/
    private Integer code;
    /**返回信息*/
    private String message;

    ResultCode(boolean success, int code, String messge) {
        this.success =success;
        this.code= code;
        this.message =messge;
    }

    public boolean getSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
